add ithread support, const a table

my summary/discussion of this patch is at https://github.com/rurban/Cpanel-JSON-XS/issues/16#issue-31532369