[cleanup] minor code simplification
Assert that the GeometryType argument has correct dimension

When asking for a quadrature rule from the container, the dimension of the
domain of integration is actually given twice: once as a template parameter
for the container, and once as part of the GeometryType argument.  This patch
adds an assertion to make sure the two are identical.