New progress for produce.idc

Unified with sf2const.asm
Builds when arrays longer than a line are undefined and stack frame
members are deleted.
The rom still has differences which have to be investigated.