dof_indices isn't for inactive elements

This will hopefully make it easier to catch a common new users' bug: iterating over all elements rather than all active elements.  Thanks to Miguel Angel Salazar de Troya for inspiring this while investigating a related userspace bug.