IdParam now extends IdVar and uses its offset attribute.
Minor corrections and new tests for functions. There is still plenty to do for the function part...