some typescript type check fixes

fixes https://github.com/turbulenz/turbulenz_engine/issues/10