Allow objects to be passed to $view->with()