Refactor indexed view to appease MSVC 14.16.
We're getting all kinds of warnings about redefining default template parameters, and the MSVC 14.16 build is breaking (likely due to a compiler bug) because it can't find the right template definitions from inside DenseBase. Moving all the template class definitions out of the IndexedViewMethods.inc plugin fixes this.