Add support for UNNEST

Did you mean for this to be public?