#58: Moved RangeError and some helper classes to errors module.