[bzr] Updated bzr tree_id to a more bzr-backwards implementation