It seems the airlines can do a better job of making sure carry-ons fit into that template
Yes indeed. They should check all carry-on luggage for size prior to the TSA checkpoints. 100% check. But where do we usually see the templates? At the gates where they are pretty much totally ignored by both the gate agents and the passengers. It really burns me up.