fixed bug where variable name in wrapper routine was the same as a "used" module.

Now appends _ to variable name. This type of error may be present in other places -- I've only dealt with the scalar derived types.