Implemented unpack_anymap and anpack_any for map

Implemented unpack_anymap and anpack_any for map.
Performed minor refactoring of the unpack_any for the vector by using the existing unpack_anyvec routine.