Some fixes in Tao interface for PETSc 64-bit indices.
Some small fixes for issues reported by Coverity
Merge branch 'garth/coverity-fixes'
Merge branch 'garth/fixes-for-petsc-64'