Actually, your notation confuses me (due to relative lack of recent experience).
To stipulate something along the lines of
g(1)=godel number of f(1,w) g(2)=godel number of f(2,w) g(3)=godel number of f(3,w) etc
would seem to be
g(1)= g(f(1,w)) g(2)= g(f(2,w)) g(3)= g(f(3,w))
which would seem to violate the idea that the Goedel numbering corresponds with a unique naming of symbols.
Now, if your countable language is indexed by the natural numbers and the argument to 'g' is the index of the given formula, then the numerals on the left have no relation to the numerals on the right. In that case, the correspondence of your listing would have to be thought as accidental.