Added parse functions for DSON objects and arrays.

These are mainly convenience functions that assume that their input is
valid, and will throw an exception if it's not.