Make format functions throw RangeError
(closes #987)
#1032
Merged
RangeError
(closes #987)
#1032