Added possibility to inject an IQueryUnwrapper instance.

This can be used to support custom query types.