Fixed a bug where simple-history can;t handle foreign keys pointing to
one to one fields.