Fixed types if not specified in iterator

If no type is specified : 

// before
$types = array(NULL);

// after
$types = array();