Resolved distinction between length and size.
Added latest optimization bits for Xcode 5.
Added back missing pch includes, safeguard to avoid iOS SDKs < 7.0.