Some fixes in Tao interface for PETSc 64-bit indices.
Merge branch 'garth/fixes-for-petsc-64' into next