Pretty printing now optimizes empty arrays and objects to '[]' and '{}'
Implement test for pretty printing serialization