Fix PagesField.

Enforce type and fix typo. Also don't use CharField as base class since
the coerce method transform all in string.