MODE-2285 Corrected the index and index provider beahvior of the ModeShape subsystem for Wildfly

Several issues were fixed and tested.
Without it, for some reason the change adapters running in the event thread can't get to the serializer-related classes. I have no idea why, but this was the only way I could get rid of the problem. Any ideas???