Misc issues in the tree importer

Also uncovered a syntax error in "quicksave", which is apparently never
tested or used outside of the importer?