JBIDE-16947 Beans are not automatically validated when beans.xml is changed

Dependency between beans.xml and excluded resources are added to project context.
Test is added.