core: dynamically lookup the class when a string is set, for various widget with *_cls properties name. closes #1740