backport Integer monkey patches