Fixed serialization of MapDb