Fix the typing of Cypher collections.

o Previously all collections were CollectionType(AnyType()) because of a bug in
   the type derivation code.
o This fixes a reported bug where indexing twice into a collection didn't work.
Merge pull request #1315 from benbc/2.0-fix-typing-of-cypher-collections

Fix the typing of Cypher collections.