More reference caching removel

* Caching references to visitor, query service and factories is dangerous
  since these can hang around in their parent objects after a change of
  server version and cause class cast exceptions

* SqlTransformationMappingRootValidationRule
 * Especially important with this class since it is create as a singleton
   static and used throughout the life of the application