Implement Window.set/clearInterval.(fixes #2116)