allow static evaluation of int2point and defref

I have no idea if this is right way to do it, it actually worked for me. If there is a right/better  way to do it please guide me to it and I will redo it :-)