Wrapper object to return a row as either an array, an object, or
a custom class.

If row doesn't exist, returns null.

@param mixed   $n    The index of the results to return
@param string  $type The type of result object. 'array', 'object' or class name.

@return mixed