return type of input field (issue #217)

Do not check @type against NON_TEXT_TYPES when returning the attribute
value. Fixes a problem where 'email' was returned as 'text'.