Finish up last touches for correct Hibernate Search integration

Three commits about three issues: they depend on each other.

https://issues.jboss.org/browse/WFLY-2822
https://issues.jboss.org/browse/WFLY-2830
https://issues.jboss.org/browse/WFLY-2832