remove dead code
renamed array host functions
Derived type description updated to match syntax.
Kind_prim_gen is now a struct; generic type parameters are capitalized; generic type constructors; use memoize decrators.