Listbox selection index is converted to int

This fixes a bug on OS X where, for some ungodly reason, tk returns
indices as strings.  (Because, you know, that makes sense.  And it's not
like the underlying Cocoa APIs treat them as ints.  Sigh.)

Closes #39.