SamHeader: add self assignment check