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

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