Ok, so this is already fixed in WildFly master (see also https://github.com/wildfly/wildfly/commit/72683cccfea5e7be1b2b2a98d6435d13be629ef5). We need to rebase our WildFly 10.x branch for Weld 3.