NSPopupButtonCells expect the menu item index to be the object value so do that

Fixes #15.