Fixed bindAttr helper to accept plain function as a mutator.