A small speed up for the model-free duplicate_data() function.
This is used in model selection.
Authored by: bugman 2012-07-02
Parent: [r17136]
Child: [r17138]