Use the output of a module inside a class (including task (generator)

In reply to saketa:

The type vl_unpack_regbit is not a SV standard type. It looks like type which is a reference C type.