Class can now write out objects, arrays and other values.