marshal single structs as object at root level fixes #12