Bugfix: need to preserve subclasses' internal state when creating a temp tx to be used for signing