Polymorphism fix

This fixes the problem where a find_one is executed on a base class. The
method should return the class based on the "_type" field stored in the
document.