Recycler fix

Hi. I've fixed Recycler. In some places key and index of SparseArray were used incorrectly. Improved compatibility with earlier Android versions as well.