Fix runtests.py
Only use IR optimize stage for object mode
Update requirements