Use container for template lookup.

Remove reliance on `_eak_seen`
Merge pull request #122 from rjackson/dont-be-stupid

Use container for template lookup.