[ocaml] support display of formatted string in messages

this should close #796
to display an integer (or array of integer) in HEX, just add format="%x" to the field in messages.xml