Added a simple caching mechanism for terrain index buffer detail levels.
Rewrite some of the access code and make some of GeoPatchContext private with accessors.