fix constant folding for repeated negation
minor code cleanup
add constant folding tests for bool values
delete unused LongNode class