fixed alignment and parsing of text field restrictions

@stowellm 
Found two bugs with text field restrictions in writer while I was fixing the other bugs. This fixes them.
It is not actually lined up like this. Git is just being Git.