Add gregorian module.
Fix CREATE UNIQUE quirks.
Bit of renaming.
Gregorian fixes.