Iterator object tests and fixes for next/prev prime behavior near native boundary