More implementation of custom extractors: pass the number of columns calculated by index creation through to the open, use that to generate correct key formats and a plan that can extract the primary key.