Fix refactoring bugs, start with carmen-mem
Merge branch 'dev' of github.com:mapbox/carmen into dev