Added support for row instance caching in Result.

Now every call to Result::getRow() returns the same row instance for the given $id. It seems reasonable and can be used to implement some kind of identity map on entries level and so on.