Replace TypeQueueCheckAndPushBack with TypeStackGuard

A followup commit will rename type_queue to type_stack.

Test: ./test.py
Bug: 255702405
Change-Id: Ie5c21b0883f08386d30b80ca955708aa7f4bdb16
3 files changed