bug fixes for PopupMenu, new classes: CompoundAdapter, SingleAdapter, WrapperList