Added callback type checking to setTimeout/setInterval()