begin array declarator support and improve type_tree_to_string function