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().