GROOVY-6559: Fix for escape single character in the JsonOutput
GROOVY-6541: getAt method not found if inferred type is Integer and getAt() accepts a primitive int