add convert function for DMP::SampledTrajectoryV2 <-> armarx::TrajectoryPtr and add serialize for DMP::UMISTMP