Fix #1277
(cherry picked from commit 216e703e5d4612fb3c9327008bcacb611ba94590)
Unit test
Merge pull request #1279 from sjinks/issue-1277

[1.3.0] Fix #1277 (ability to clone \Phalcon\Config)