Bugfixes

Bugfix: CAST function recognized with DATE (keyword) as the target type
Bugfix: LAG and LEAD functions supports IGNORE NULLS clause