Fixed the 'tree' bug 

Added support for data values when 'reverting' blocks.