implemented environment-merging for function calls; also vmstate-popn! and vmstate-pushvals!