Generalize `parameterize`.

Closes #141.