Fix problems with GroovyPrintWriter