fix crash in accessing released block, sorting elements and warnings

copy block property to allow use of stack blocks
fix deprecated warnings on iOS7
fix sorting with more then 1 index