Implement serialization of annotated properties as numeric map keys.