Fixed lots of accidental uses of Float instead of CT in vectors and matrices, making them properly generic