Coerce max items to an integer

Fixes a bug where services that model max items as a string
will fail.  Now we always convert this value to an int().
Merge branch 'str-max-items' into develop

* str-max-items:
  Coerce max items to an integer