various knockout test fixes

Corrected various knockout tests which were not properly following the rules of static typing.

These errors were exposed by the new 0.9.5 plugin, however they were not technically 'correct' by the TypeScript spec beforehand (even though no errors were reported by the plugin).