Sanitizer fixes and tests for split rendering See merge request !2169
mentioned in issue #1348 (closed)