StringCSVParser: change hardcoded record type detector into lambda type, provide sample implementations