ido: fix mem leak; don't invalidate dbref on object inactive