Serialization macro

Hi Paul,

here is the serialization check macro. I will merge the branch in aslam_cv once this pull request is accepted.

Simon