Fixes stack overflow on instance.save() with a reversed hasOne association (#338)