Revert "Fix a memory leak in RerferenceCache"
Revert "Add semantic check to forbid to match on a pattern containing only bound identifiers"

Revert "Add semantic check to forbid to add labels/types or properties when matching on bound identifiers"

This reverts commit 4a3ee466bd97aa51e589a9c466dd31e46b9813ab.
This reverts commit a2f5f9957ff56d7236c0f13afc3d17580d69f2fe.

Conflicts:
	community/cypher/cypher-compiler-2.1/src/test/scala/org/neo4j/cypher/internal/compiler/v2_1/ast/MatchClauseTest.scala
	community/cypher/cypher/src/test/scala/org/neo4j/cypher/internal/compiler/v2_1/ErrorMessagesTest.scala