Bias storage of events towards static scopes.
Bias storage of events towards static scopes.

This patch modifies the code that finds and combines similar events
such that if similar events are found in both static and automatic
scopes, the retained event will be in a static scope. This is a
performance enhancement, as VVP has more run-time overhead when
handling events declared in an automatic scope.

CastMi/iverilog,themperek/iverilog,CastMi/iverilog,themperek/iverilog,themperek/iverilog,CastMi/iverilog