Merge pull request #109 from ndawe/master

[MRG] properly handle tree weights for chains