changed all double to PetscScalar to make compiling FormOperators in complex mode possible