Mods to HardwareSerial to handle 9-bit data

You are welcome.

The mod was specific to the way that the hardware on this particular processor worked. It probably can be carried over to similar ones in the same line (eg. the Mega2560).

As for ARM ones, they would have different hardware interaction. Quite possibly they might support some sort of 9-bit serial, however I just don't know.