add pack/unpack capability to map

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>