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

Starting #311 with the files with least churn.

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.