[RDY] Clean up arabic.c/h, farsi.c/h, and hangulin.c/h

Initial cleanup with uncrustify + manual changes for edge cases that uncrustify does not handle.

Ran the files with clint to check that style errors were fixed, then validated by building and running tests.