Fix TS0.9.11 compile error

Typescript Error Message error: Generic type references must include
all type arguments
Fixing for 'declare' modifier not allowed for code already in an ambient context.
Spelling Accounts and Template fix