Fixed iOS Ref counting template that could become “nil”
Fixed ARC support, and think I cleaned some items where only the last subs where saved.
Merge pull request #2 from epatel/master

Added a couple fixes