Have the foreign_type use the base class to deal with STI classes properly