Added a few type checks to bind-text and bind-attr