Fixed minor object_deref() bug where refcount could be decremented below 0