`selector()` should accept string with selector reference. Fixes #1261