Merge pull request #88 from libtom/const_api Add 'const' keyword in various places. Adopted from Tcl