fix #152
Make solution more general; add wider range of serialisation test cases
blah
Merge pull request #153 from cdagraca/master

Fix deserialisation bug on CCSMatrix; Fixes #152