Bug fix: always added the logical type to all longs by mistake.
Also updated the tests; now they all pass.
Adding test for durations.