protocols: rename type to maptype for map