Fix some compiler warnings, mostly in Cypher
Fix broken PROFILE in Cypher
Add semantic checking to unique constraints in AST

This avoids the unnecessary creation of an additional legacy query tree
for every statement.
Merge pull request #3032 from systay/warnings

Fix some compiler warnings, mostly in Cypher
Merge pull request #3031 from systay/profile-shell

Fix broken PROFILE in Cypher
Merge pull request #3048 from cleishm/no-legacy-verify

Add semantic checking to unique constraints in AST
Merged 2.1-maint into master