[nim] #X More pythonic way of clearing stubs and mocks on modules.