Issue#662: Fix warnings
Issue#662: Fix warnings

Generate private method bodies in vpi_listener only if the model has
sub-models or if the model itself is an obj_def. Prevents creating
private functions for models that are declared as class_def but has
no associated obj_def.

chipsalliance/UHDM,chipsalliance/UHDM,chipsalliance/UHDM