The encoder now returns tuples instead of lists.
Tuples take a little less memory which is significant when serializing a lot of objects.
Merge pull request #1920 from thedrow/topic/encoder-improvements

The JSON encoder now uses tuples instead of lists