GROOVY-5924: Annotated DGM#min and DGM#max methods
   * fixed leaking "it" inferred type onto different closures