Dump only changed leaves

This PR checks each leaf for changes before dumping. Should save a lot of time when large amount of files are combined and compiled (for example, from coffeescript)