i32 overflow checking
in the wake of http://jira.incubaid.com/browse/ARAKOON-373