Warning fixes.
Copy-paste fix for elements with max_length set.
Merge pull request #110 from dougbinks/master

Warning fixes.