fix one edge case causing crappy crash like in #7
fix more edge cases as in #7
fix last edge case around empty object deserialization; done with #7 for time being
comment spacing