Implemented support for type decls