Various improvements in support for generate statements
Added support for $clog2 system function
Fixed generate-for (and disabled double warning for auto-wire)