make objectToLayer and layerToObject public, check for empty values in mapbbcode objs