TextInput: Export pattern, min and max attributes only if the input type allows them

Not all types of inputs allow pattern, min and max attributes (see http://www.w3.org/TR/html5/forms.html#input-type-attr-summary). Furthermore, regular expression in pattern attribute is now exported as anchored to make it consistent with Nette validation.