[MONDRIAN-1949] - Community contribution of NuoDB Dialect with tests.

Includes changes to core tests around segment cache to pass cleanly.