NEW_GEN: fixing scope and context also in list sizes and declarations.
NEW_GEN: Try to set type of binary expression.
NEW_GEN: Move declaration and statements in port write nodes into the action node. So they will be treated just like all the rest.
NEW_GEN: Handle repeat on ports and some cosmetic fixes to the c-printing.