Fix sameAs and add tests

- fix sameAs for Add, Log, Pow, Trig
- add sameAs to Abs, Func
- replace Num.negativeOne() with Num.Neg
- add some comments