when serializing, indent groups by 2 and entries by 4 (or 2 if no groups)
fixup
remove ending blank line when serializing
add spaces around group names when serializing