implement offset calculation for DefineMorphShapeTag
serialization improvements