GROOVY-6385: groovy.bat: Can't use question mark in script parameters

As suggested by Dominique on the mailing list:

http://groovy.329449.n5.nabble.com/Can-t-use-question-mark-in-script-parameters-td5716658.html
code style (readability: scope)
GROOVY-6389: groovysh: Print results not using String.valueOf

Using java.lang.String.valueOf(obj) for instances of Arrays and Maps causes
Object.toString to be used for String generation, causing ugly output in groovysh

This commit avoids that instead which uses pretty output for collections.

As opposed to an earlier commit for Groovy 2.2, Arrays will be displayed
without their type.

Avoiding the GString here because of the earlier code
comment, not sure whether there is any risk using GString here or not
(Comment was from 2007, e222d4f5cf8cc7).
replace other occurences of String.valueOf in groovysh
Merge pull request #268 from tkruse/avoid_valueOf

GROOVY-6389: groovysh flawed display of collections 

print all results using toString() instead of String.valueOf()
Revert "Merge pull request #268 from tkruse/avoid_valueOf"

This reverts commit 98da3808b1ac9b03b214a4f6274c7f95c2e0ba38, reversing
changes made to a9d3b3ae3fee5a1d92d6d5bab350cc313cf4f9a7.

I missed the change to "MetaClassImpl.java". This needs further review, therefore reverted the commit.
GROOVY-6391: groovysh: fix bad member name
Fix invalid AnsiDetector after migration to jline2
GROOVY-6389: groovysh: Print results using toString(), not String.valueOf

Using java.lang.String.valueOf(obj) for instances of Arrays and Maps causes
Object.toString to be used for String generation, causing ugly output in groovysh

This commit uses toString() instead which uses pretty output for collections.

As opposed to an earlier commit for Groovy 2.2, Arrays will be displayed
without their type. Avoiding the GString here because of the earlier code
comment, not sure whether there is any risk using GString here or not
(Comment was from 2007, e222d4f5cf8cc7).
replace other occurences of String.valueOf in groovysh
Merge pull request #271 from tkruse/avoid_valueOf

GROOVY-6389: groovysh flawed display of collections
Merge pull request #269 from tkruse/fix_varname

GROOVY-6391: groovysh: broken alias and register commands
make test succeed even if ANSI is not supported by test platform
removed unnecessary imports
testObjectSleepWithOnInterruptHandlerContinueSleeping still fails
sometimes, so let it wait a bit longer to be interrupted
Merge pull request #270 from tkruse/style_fixes
groovysh: fix bad method name createCompleto/ers
Merge pull request #272 from tkruse/fix_missing_completers

GROOVY-6392: Groovysh: filename completion of save command broken
groovysh: Code Style qualifier
groovysh: code style add instead of <<