Reduce number of exported symbols

This reduces the number of binary symbols that are exported by marking a lot of templated functions as inline and hidden. Applying this patch causes the number of symbols exported by libmodule to be divided by 4 and the link time to be divided by more than 2; programs should also run a tiny bit faster. No changes are required to oksrc or okws.