Cater for collect() clause of nodes in cypher

@jexp as requested PR for change to allow collect() clause to be used in Cypher queries. Please double check it does not cause any other issues elsewhere, however all existing (and new) tests are passing :)

This change will allow https://jira.springsource.org/browse/DATAGRAPH-383 to be resolved provided SDN is upgraded to use the later rest library