[WFLY-490] Misc perf improvements, minor fixes and test additions