Fixed memory issue with timer
(it was trying to unregister a ref after VM closed)
Fixed timers not accepting only two parameters.