(Almost) fix all issues with semi-sparse analysis. More tests required though.