[Tree] Allow materializedPath strategy to use ID as TreePathSource

Hi,
Next to that issue https://github.com/Atlantic18/DoctrineExtensions/issues/1001, my PR change both XML and Annotation drivers.
Kevyn