named queries patch

- fixed GRAILS-8963 ( the additional criteria closure was added to the params array )
- implemented GRAILS-9804
- added better error reporting when calling named query with wrong no of named criteria params