utils.make_lightcurve: catch nested cases