Document internal evmap functions, add a couple of asserts, and fix up some things that did not need to be void* any more svn:r987