fixing an encoding error where subelements of a table appear on the same line
fixing bug when encoding a key who's value is a zero value
proper date time support for encoding
Formatting.