[WFLY-2218][WFLY-2246] Improve Weld subsystem transformers and tests.