Progress on the New Save Format and Minor Fixes

Made progress on the new save format. Also made various little fixes, some of which had been brought to my attention by skyboy several weeks ago. See commits for details.