Defines a reference-counted object containing a T value as payload. RefCountedNoGC keeps track of all references of an object, and when the reference count goes down to zero, frees the underlying store. RefCountedNoGC uses malloc and free for operation.