Recursively set flags on embedded objects also.