Fix path for modifying top-level parameters.

Our recursive implementation skipped the case where you'd access top-level parameters.