fixes #27 serialize optional message fails
Merge pull request #28 from JesseKPhillips/seropt

fixes #27 serialize optional message fails