Merge pull request #1844 from alelenv/ast_print_fix

Fix bug in printing trailing comma when dumping AST for a structure.