Added reader for map type.
Added writer for maps in cbuilder.