Fix an issue with Rugged::Object#lookup not honoring the object type.

Subclasses of Rugged::Object should only be able to look up objects of
their type, but were returning any object type.