cpp: switched 'fromJust' to have more informative error messages
cpp: added missing operators to precedence rules