ast-optimize: Remove ASTVALUE and use CONST nodes instead

Instead of doing all the calculations manually, we should be able to
re-use CONST nodes and the constant evaluation built into astNewBOP() etc.
This removes a lot of code, which is already nice, and even more though
for the 64bit port because less 32/64bit-sensitive code must be adjusted.