Fix SNES option setting

We need to pass flag options with value None to petsc4py otherwise the
value is converted into a string and used as an output file name. So
convert options where the type of the value is boolean to None if True
and empty if False.
Merge pull request #19 from  firedrakeproject/set-snes-options