Revert: the restriction of types broke nested maps

This is a revert of: https://github.com/neo4j/neo4j/commit/30a7d6fbb60ddcfdd5dadf0399ce69a7ebe31d2a