Benefits and Pitfalls of the Exponential Mechanism with Applications to Hilbert Spaces and Functional PCA