Is this actually useful for anything, other than easier creation of pretty displays in relay browser for users? If you're parsing ascensionhistory.php, the images have title text (although you'd need to hardcode a special case for Actually Ed the Undying -> Ed).
I feel like the added value from this sort of feature is minor enough that it's simply not worth adding, sorry! On top of that, $classes[] are essentially a hardcoded list in textui/DataTypes.java, combined with some branching logic in KoLCharacter for primestat. If Mafia already cared about this, then that would be a different story, but as is, it'd just involve yet another hardcoded list somewhere.