GRAILS-9874 - improve to resolve an error message for typeMismatch

http://jira.grails.org/browse/GRAILS-9874

Fixed the MockUtilsTests' problem at https://github.com/grails/grails-core/pull/402 and merged into one commit.
I made sure that `:grails-test-suite-uber:test` is passed.