GRAILS-8963

- changed list and listDistinct methods signature because of this bug: http://jira.grails.org/browse/GRAILS-8963?focusedCommentId=73968#comment-73968
- added unit tests