Make addPathElement accept an array, Issue #299, Lighthouse #3294

Credit to dogmatic69.  Seems as though that Jose asked him to repoint the PR and it was forgotten about.  Referencing:  https://github.com/cakephp/cakephp/pull/943