Fixing various bugs we missed during design.

Mostly just casting etc.
Merge branch 'windAlternateVectors' of github.com:dreac0nic/nimbus into windAlternateVectors