Add function to check if a parameter is modifiable.
Add hacks to make it run with structure-valued parameters!