add check_index helper, and macro for selection objects
FIX name error in WxToolBarBase
wxItemContainer: impl macro_attr_selection and use check_index for the
IndexError
wxRadioBox: impl macro_attr_selection and use check_index for the
IndexError
wxBookCtrl/wxAuiBook/wxTreeBook: add check_index for the index of the
image idx