Numerous optimizations that help the PyPy JIT compiler