WFLY-3623 (hang with invalid @Resource name) fix + testcase

Spurious ":" in @Resource annotation 'name' value results in invalid binding but no deployment error

Upstream + 8.x: https://issues.jboss.org/browse/WFLY-3623
BZ 6.x:  https://issues.jboss.org/browse/WFLY-3623

PRs:
master: https://github.com/wildfly/wildfly/pull/6587
8.x : https://github.com/wildfly/wildfly/pull/6588
EAP 6.x: https://github.com/jbossas/jboss-eap/pull/1554

Why this particular check?  It seems very weirdly specific.