Added type-checking on query function, query argument. Objects as query kill neo4j.