Fix field initialization in the new backend.

Fixes #76 and #122
Fix simple_class example
Fix test_imported_constants_available_in_macros
Fix for test_main_generation_for_file_with_class_of_same_name