Fix cy codegen

Fixed a problem in codegen, where cython failed to complile because types where np.float64 instead of np.float64_t.