Hermitian Weighted Composition Operators and Bergman Extremal Functions