Make first pass at pulling out tval functions.
Use more tval functions.
Use even more tval functions.
Clean up the last few easy tval functions and remove unnecessary tvalsval.h includes.
Change object char/attr macros into real functions.