fix for illegal code construct that the type that is declared in the jsodc points to the variable it is declared on (and then later on used)