deconstructor: check for frontier before length

This change also adds a mocha leak ignore when checking global scope, allowing all tests to pass by default, and removes legacy SSA.js names.