Fixed a timer bug that could cause a timer memory leak, or incorrect behavior.

Updated to v0.5.3.