[WFLY-1702] Investigate module wiring consistency at build time

https://issues.jboss.org/browse/WFLY-1702