Added support for scripts with infinite running time (hangs).
Added test case 038-hang-on-init-of-recursive-generic-type.timeout.swift