Add convenience calls for rehashing

This is relevant particularly to precompilation, which requires
that any module global dicts get rehashed by the __init__
function.