optimized the searching in ViewTypePool.  Closes GH-681
added an integration test to Close GH-699