[Bugfix] Correct standard deviation for complex input data

  • Fix standard deviation computation for complex input (#1314).