title: regex search works with cypher parser 1.9 not with version 2
body: <p>I followed <a href="http://docs.neo4j.org/refcard/2.0/" rel="nofollow">http://docs.neo4j.org/refcard/2.0/</a> for search using regular expression, it looks like Cypher2 has a problem with the operator "=~" it works for cypher parser 1.9 but not with version 2</p>
  
  <p><strong>==> <a href="http://console.neo4j.org/" rel="nofollow">http://console.neo4j.org/</a></strong> </p>
  
  <pre><code>Query:
  CYPHER 1.9  START n=node(*) 
  WHERE n.name =~ 'T.*' 
  RETURN n
  
  result=OK
  </code></pre>
  
  <p>Doesn't work after switching to cypher parser 2:</p>
  
  <pre><code>Query:
  START n=node(*) 
  WHERE n.name =~ 'T.*' 
  RETURN n
  Error: java.lang.ClassCastException: org.neo4j.cypher.internal.compiler.v1_9.commands.Query cannot be cast to org.neo4j.cypher.internal.compiler.v2_0.commands.AbstractQuery
  </code></pre>
  
  <p><strong>==> Neo4j 2.0.0-M06</strong></p>
  
  <pre><code>START n=node(*)
  WHERE n.name =~ 's.*' 
  RETURN n  
  
  Expected 2 to be a java.lang.String, but it was a java.lang.Integer
  STATEMENT_EXECUTION_ERROR
  </code></pre>
  
  <p>Any hint?</p>