More tests for decimals

Not all of them pass because of and-or precendance bug
Make all tests pass, code cleanup
Generate compressed json format
Sort the language codes in json output