DATAGRAPH-257 QueryResultBuilder cannot be cast to java.util.Set

@jexp - this replaces the previous outdated PR https://github.com/spring-projects/spring-data-neo4j/pull/130.

Fixes QueryResultBuilder cannot be cast to java.util.Set in NodeEntity for SDN 3.1+ context. Needed to do a bit of a workaround for transitive &#64;Query annotated fields, as these were never being evaluated. I think a previous change to how transitive fields worked rendered &#64;Query fields null unless the transitive modifier was removed, however transitive modifier should be allowed so that it doesn't get serialized.


I could not find a to(Container.class) method, though there was a as(Class<C> container) method. Unfortunately had all sorts of problems trying to get the generics working in all cases, plus logic is slightly different for this case so introduced asCollection(Class<C> container)  method - let me know what you think