bugfix in range extension in generate_vardark.py. cleanup.