Provide generic subobjects-walker function. Not yet refactored other code to use it, pending performance experiments.