Quantum mechanics on spaces of nonconstant curvature: The oscillator problem and superintegrability RID B-5702-2011