Good find.  I have not rerun valgrind against recent code.  Will add refine and refdec pair so that same logic works in both conditions.  Refdec to zero deletes object.