Generate c_map_bcs code also for flattened Mat