fix($sce): make trustAs watchable by caching its instances by type

Closes #3932
Closes #3980
style($sce): remove unused function and add missing semi-colons
docs($sce): fix typo