Index: form.inc
===================================================================
--- form.inc	(revision 810)
+++ form.inc	(working copy)
@@ -1363,7 +1363,7 @@
     }
   }
 
-  return $cache[$type];
+  return (array)$cache[$type];
 }
 
 function form_options_flatten($array, $reset = TRUE) {

