honor storeEmpties mapper option for maps

Currently, an empty map is not stored in mongo, even when mapper.storeEmpties = true

This causes issues when null != {} in equality checks, meaning an object saved and then immediately fetched will not be equal to the original object.