Fixed builders not emptied in survival, for #1601.
Refactored StackUtil class to use static members.