Fixes issue #120.

The invertElementwise() method of the P1Function and P2Function class now
allows the caller to select, whether the inversion should only be performed
on DoFs interior to a primitive or also on a primitive's halo.
24 jobs for mohr/issue120 in 109 minutes and 28 seconds (queued for 16 minutes and 7 seconds)