Add support for parametrized types. Better import management. Add tests for arrays