Allow setting user_class with string

This allows to workaround class reloading issues in dev environments