min/max: remove sparse warnings when they're nested