Dev/fix/warnings

Addressed all warnings detected by Xcode static analysis.

Build settings should be updated to treat warnings as errors, additional warnings (i.e. implicit retain by blocks) should be enabled as well.