Moving serialize method into subclasses of MadsDatastream
Removing unused type method/variable