Wrap setMaxResults in maybe-int for REPL ease.

this is a similar change to elsewhere to avoid having to ``(int)`` cast all over the place, compare to max-keys in ListObjectsRequest