Adding codeigniter object_to_array function

Allow use of objects instead of array in templates rendering