Added range checking for all integer types in xml import logic.