Makes sure that `unbound` helper works with attributes

Closes #9681