Added semantic handling of different number systems, corrected number system regex in jj, and added unit tests for same