/**
  * Converts the data in the record set to a different format, i.e. an array.
  *
  * @param string $format
  * @param array $options
  * @return mixed
  */
 public function to($format, array $options = array())
 {
     $default = array('indexed' => true);
     $options += $default;
     $options['internal'] = !$options['indexed'];
     unset($options['indexed']);
     $this->offsetGet(null);
     if (!$options['internal'] && !is_scalar(current($this->_index))) {
         $options['internal'] = true;
     }
     return $result = parent::to($format, $options);
 }