Fix Propel TreeBuilder

Fix Propel TreeBuilder to correctly normalize xml configuration file.
This commit fixes #682
646: toArray() fails to recognise Primary Key as DateTime

Task-Url: https://github.com/propelorm/Propel2/issues/issue/646

fixes #646

Added check for object in InstancePoolTrait to fix problem with DateTime
Object as PrimaryKey during call of save.

Changed build of $alreadyDumpedObjects in toArray method to allow DateTime
as PrimaryKey. Used hashCode() method for array key instead of getPrimaryKey() function.