- Added serialisation routines for cv::Mat, based on a blog post

- Fixed possibly open ofstream in convert-pasc-metadata
Removed elem_size serialisation, swapped cols/rows order