random updates to script which helped generate entry to the
C++ error explosion contest
fixed a crash on unresolved functions

If we can't resolve a function, then generate a tmp var of int type