[compat] Introduce compat_integer_types