fix potential issues with large event queues due to the unstable network and too many events being tracked within a short period of time. #373 fix bug for sending Bool value as NSNumber, the server should now receive Bool value properly #373