Bug Fix: Polymorphic foreign keys are not converted to ObjectIds