Parse import statements; change AST types to lowercase.