avoid useless indirection during CFunction setup and instead use known module dict reference directly
fix reference leak in case of fatal errors during module setup
avoid useless indirection for module dict lookup and instead use known reference directly