fix #2905 - regression caused by 0228c1cab0222fc4684954842fd6e028601fc1ba re: AST compression efficiency