change to appender in ASTProgram.toString()

~= works on appenders.

Avoiding the if statement speeds things up a little.