Update ORM.php

http://dev.kohanaframework.org/issues/4652

Also related to https://github.com/kohana/orm/pull/77
Refs #4750: Fixes API guide issue for count_relations
Fixes #4730, Fixed Auth_ORM::logged_in not working if $role is an ORM object.