Handling virtual classes in wireshark_gen

Feel free to reject if it's too messy.
Reviewer: @rlane