Dump: Fix typeof check for setInterval

Fixes #631.
Closes #642.