[tern addon] add optional callback to showType
[tern addon] Adjust callback variable name to match rest of file

Issue #2644