Limit the number of calls to indexBar:didSelectIndex: [fixed]

Modified version of PR #4, based on feedback.

The last selected index is stored in an instance variable as requested.

I like that. Just tested it and seems to work the same (why wouldn't it ;)).
I'll update the PR.