Convert references to PRIM_BLOCK_* for FOR/WHILE into calls to the appropriate virtual methods