Let's not pretend like we're a form library with validation, but do allow some type checking for attribute assignment.