Fix for memory leak when slicing, and fix for compiler warning.

Also, the podspec was pointing to the wrong tag.