A whole bunch of ARMv7 optimizations and minor fixes.