Shared: Fixed bug in toRomanNumeral.

9 and numbers ending in 9 would end with "IXIV."
Thanks to Jesse Rosenthal.  Closes #1249.