Fix a class variable initialization bug in treediff.

This fixes broken `git checkout`

@devoncarew TBR