#661332 by yhahn: Allow export.inc to export stdClass objects by exporting them as an array and casting them to an object.