Small fixes in SynCrossPlatformJSON to allow proper execution if range checking or overflow checking are enabled for the project (e.g. FPC in debugging mode) - see ticket [2bfa0602565]