[rev=Peter] IDEA-109473, IDEA-109475 improve parameter's type handling in 'change signature' for Groovy
(cherry picked from commit d08e429)