[FLINK-1208] check multiple successive commented lines & aggregated count of invalid lines or comments & avoid object instantiation & comments only at the beginning of a line