[PATCH 1/2] extract_integer_content: check for rational numbers properly.