Add test for format options used by the generator

The space_before, space, indent, object_nl and array_nl options of the
space were not covered.
Use space_before as documented in the generator

This option was already documented but not implemented, allows setting
the separator used before the ":" during generation.