Rename the generator functions again due to conflicting names ("String"->"JSON").

Since Algebraic has its own .toString, trying to use CTFE with generator.toString() resulted in the wrong function being called.
writeAsPrettyJSON -> writePrettyJSON