[eluser]Unknown[/eluser]
I updated to_array() to turn related objects into nested data (rather than arrays of IDs) -- and automatically loads related tables' data if you don't specify fields when calling to_array().
Updated array.php attached (in a ZIP file).
Hope this helps you as much as it helps me!
Sean Gilbertson