Add serializer for AbstractMessage

+ Set compiler optimization flag to 0 -> easier for debugging
Remove unecessary casts

+ Check value in main fct
Merge branch 'develop' of https://github.com/jdussouillez/ShaDaPP into feature-serializer