function isSerialized(), with tests
Cleanup and merge branch 'isserialized'