Reorganise things to make the success case the exception.
Make temporary iterator value dynamic.
jd_get returns NULL for non-autoviv out-of-range array access.
Iterator wrapper. Returns pointer to slot.