Hadling ResultSet::first() trhough collection functions

In the past we had to handle the first() function differently so we
could close the statement. Doe to improvemets in how the statement
is closed in te query and the connection, this is no loger required.
Merge pull request #5361 from cakephp/3.0-resulset-first

Handling ResultSet::first() through collection functions