The series is over but it will be remembered for subverting crime drama clichés and creating a new kind of TV cop