make multi dimensional map serializable