Make up integer types for keys and indices