Add lineno to FuncVal. Print out stack traces.
Minor fixes found through clang's static analyzer