XML::toArray patch
https://cakephp.lighthouseapp.com/projects/42648/tickets/1667