GROOVY-5801: sql.firstRow() can be incredibly slow

implemented as suggested by Sam Perman

see: https://jira.codehaus.org/browse/GROOVY-5801