Add tests and bugfixes for getting properties of date expression types