m2m serialization and de- for objecttasks