Produce decent Ruby ranges
Handle more special cases