[Fix] Clear self in refcount_destroy() only if debug
[Fix] Clear self in object_destroy() only if debug
[Fix] Clear self in weakptr_destroy() only if debug
[Fix] Clear self in stdoutput_destroy() only if debug