Fix startup issue: tty-change may be a plain Object or a TTYState instance.
Fix startup issue: tty-change may be a plain Object or a TTYState instance.

* Also make setTTY_ private.

mcanthony/axiom,rpaquay/axiom,ussuri/axiom,chromium/axiom