There should be a green background but it is white. In addition, changing the tikz 'bg' parameter actually has no effect, it is never actually used in the code.
TikZ_Open and TikZ_NewPage need to call SetFill and SetAlpha to set a fill color and use \fill instead of \draw.
The drawing of the background needs to be delayed until the first call to a plotting function is made---that way the user has time to adjust the background using par after calling tikz.
The following code demonstrates the bug:
There should be a green background but it is white. In addition, changing the tikz 'bg' parameter actually has no effect, it is never actually used in the code.