osd: fix types for size checks

Signed-off-by: Sage Weil <sage@inktank.com>
librados: add tests for too-large objects

Signed-off-by: Sage Weil <sage@inktank.com>