Allow objects to be passed to views

These changes allow you to pass an object to View::make and $view->with().