tree: allow retrieval of raw attributes

When a tool needs to recreate the tree object (for example an
interface to another VCS), it needs to use the raw attributes,
forgoing any normalization.
Merge pull request #1894 from libgit2/cmn/tree-raw

tree: allow retrieval of raw attributes