Output Child Objects as Arrays when toArray is called

If an object is turned into an array, and that object has
child objects, automatically convert the child objects to
either an array or public array as needed.