cuda generation support added.
rewrite hydro example in a new type system.