bumping and destroying refs
clean up contents of an @ptr too; todo: move all the destruction into generated dtor functions when we need to support recursive types...
minor fix