BUG: SemiLinear, similar fixes as in SingleIndex (only checked with one example)
DOC: example for checking SemiLinear fix in previous commit