GROOVY-6733: Fix "power" optimization when the type of the receiver/argument are not those expected