Fix a couple of errors with the generated code.
Replace SpriteBatch with a trivial Stage and TextButton.