[MONDRIAN-1844] Fixes a bunch of issues with the olap4j listener and the repository helper for mondrian.