Updated for iOS 6+, arc. A few improvements and bugfixes. Ensured it still works with IntelligentTemplate submodule (after switching to LLVM.)