export the manifold dimension as 'dim'. The main class template parameter had to change names for this [[Imported from SVN: r6433]]