add unit test
warn if not serializable, also add basic unit test
address review comments
remove controversial methods
further simplification
Merge pull request #12 from k9mail/art/warn-if-not-serializable

Art/warn if not serializable