Logic fixes to dumptypes's stack/local handling.