SI-8386 showCode fails to pretty print application to assign

1) Fix for SI-8386.
2) Tests for attributed trees are restored.