Small refactoring of the DrawContext code to remove duplication of vertex / patch counting code.

fixes #153