Reimplemented tri-state Buffer as a Gate subclass.