GROOVY-5858: 'string'.count('') fails (additional optimization)
GROOVY-5906: Fixed a stack overflow