ModelField should support max_length. Closes #2018.