first shot at constant folding

so far it does nothing, but also breaks nothing. It seems that the multi dispatch call optimization comes first, and interferes with this one