Added ScoreTree serialization.