timestamp performance improvement

- The `Timestamp#to_json` method was very very slow, this fix improves json serialization performance. 
- Also added a cleanup and performance improvement to `Event#to_s`