Likelihood-based Inference on Nonlinear spaces