GROOVY-5888: Spread calls sometimes break static context checks