Maps: wrong sequence length returned by map type

Fix issue introduced by pull request #320. The map type returned the number of keys in the map as sequence length. This is wrong and causes unexpected errors in expressions like $map[2]. A map is a single item and should return a length of 1.