Add some calls to sample debug code to sort keys & trim unwanted parts of asts