fixed problems with static evaluation and text gen of pointer2int