SQL: flatten() now creates projection even on non-records