GROOVY-3772: Automatic indentation in groovy.util.IndentPrinter

http://jira.codehaus.org/browse/GROOVY-3772

I updated the patch provided by Kent Inge Simonsen, modified it so that the auto indent is only applied for println().

Feel to reject if the functionally is not generally useful enough etc.