appenderattachableimpl.cxx: Remove elements in specific order to avoid
differences between platforms in order of destruction, which is unspecified by
the standard.