Workaround for WELD-1546: try to lookup beanmanager from JNDI first
Also inject anonymous classes
Fix testcases
fix all kinds of warnings