Restrict tag name change when child of list; added test