test_whole_compiler: Fixed mem allocation in tests
generator: Added _is_correct_identifier()