Type handling for range