Some improvementts in sub-dofmap construction