Add code to dump the stack when running scm.  For testing.