Inlined and added checks for method in_per_integer_with_check
Inlined in_per_length_with_check, removed dead code