BUG: Stopped getting the tree of a commit at creation

This was causing some serious issues on load of a repository.
Due to changing how tree() it has meant that the const
 has had to be removed.