Is this line supposed to be `$microdata   = JFactory::getMicrodata($params->get('microdata'))->setType(json_decode($row->attribs['microdata_type'], true));`?