cmodel.tpl.php related objects results as pids, not objects