Fix casting problem in Tao solver for 64-bit PetscInt
Merge branch 'tianyi/nls-tao-nonlinear' into next