GROOVY-6605: Object ranges should be inferred as Range<LUB of from/to>