Red-Green-Refactor on toArabic

Test pass for Roman to Arabic conversion; moved common function up level