corrected some intrinsic func impls, fixed bug with AST_LOGIC_NOT recursion, added hack to deal with -0 time arg to arccot