GROOVY-10635: Method references not working for record components in dynamic code