Parse range from string, e.g. "0, 1, 7, 9-10, 100-" -> [0, 1, [9, 10], [100, Infinity]]