Added a tagged integer range check.