Cleaned up utils.views to increase performance when fetching single objects from the database for a view. Fixed #1378.
New1