Fix #533: simplify selector event registration
selector: Add test to demonstrate #533
selector: guard against undefined element when switching column structure