Fix Dialect.getType call. Closes #14.
Fix tests.