Dump: Fix typeof check for setInterval

Fixes #631.
Closes #642.
Async: Tests are now Promise-aware

Fixes #632.
Ref #534.