NMPC for Racing Using a Singularity-Free Path-Parametric Model with Obstacle Avoidance