Fixed some typos in core.php

In sync with this one https://github.com/cakephp/cakephp/pull/1244