Improve import/export for split (still not passing)

Can move lines 1024-1026 above line 1021 (to prevent unnecessary assignment to block_id on line 1022).