Fix parameterised modules containing transparent/external functions.