Process input items that could be relevant at file scope at start of each file.
Fix some issues with how default constructed sequences are built if the number of items is not a constant from one file to the next.
Fix bug in start_seq_index when sequence is not indexed by obj_num
Add variable nobjects to demo9, and add required rng at file scope to make it work.