Add support for lag and lead with offset and default value parameters