Add back type hint for getAggregatedValue() in Vertex.