Migrate to Xcode 5. Replaced id by instancetype in inits.

Use quick NSNumber creations.