Testsuite: Added code-generator test.

This test fails if F_ASSIGN_PRIVATE_TYPED_GLOBAL_AND_POP doesn't pop.