Fix toArray sorting numerically.
Add toRangeString method.