Fixed #76, improved performance of output dof reordering