small cleanup in id2str
add pool_setnamespacecallback() and pool_flush_namespaceproviders()