fix bug in linear assignment with handling of boolean inputs (fairly
major, as this caused errors in structure_matcher)