Simple auto pointer for reference counting.