MapValue: add a convenience method to build from an existing map