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.