Fixed isinstance check to work with all possible numeric types
Avoid storing an IOLoop instance on Timer objects