core flow: get scalar lowering working for segmented replicate
core flow: refactor code that inserts statements into contexts
core flow: make insertion functions take unwrapped rate types
Merge branch 'master' of ssh://github.com/DDCSF/ddc