Added a method size() to IndexPermutation.
Extracted common parts of weak form and potential operator ACA assembly
into a separate function.

Added a function to dump dense mblocks.
Extracted code common for various local assemblers into a separate utility
struct.