Serialize also the class in LociMapSerializer