GROOVY-7011: Fix support of methods with default arguments in traits