I don't think the scream was meant for comedy. I think it was meant as both a sign of Spock's deep felt grief and anger at another person's death. Again, this Spock has been surrounded by death since we have met him. Personally, I have had the moments where the is one more emotional event that pushes me over and want to scream in frustration.
That fact that it made people laugh speaks to the differences of an audience reaction, not to writers' intent.
Though, to be fair, Trek has its fair share of melodramatic moments.
oh? I had no idea. if that was their intention then it was an epic fail. spock showing grief and deep loss by channelling a scream that even shatner did as a parody and has been made a comic relief in our entertainment culture was definitely not the right way to go.
You know I rather enjoyed spock grief in the first film, even when he lost it and beat up kirk.