Backport of #226 "Fix aggregator replication factor setting" to 0.9.x
Fixes #265