Set up layering_index immediately on an explicit layer, so that undo