Change order of includes in CMake templates.

In praticular, it fixes include mismatch on systems with custom builds
of numpy living outside standard python include dirs.
Streamline getting local values from PETScVetcor.

Preparation for using local dof indices.
Merge branch 'garth/petsc-get-local-cleanup' into next