reduce casts
add a failing test for #191
close #191; do not set initial value to fields of native classes
Merge branch 'gfx/issue-191'