fix ocl lib collect/collectNested and flatten return types, some gui changes