Fix some memory errors in new code for constrained dofmaps