static fields: test case for overridding
codegen: omit register copy where dst and src is equal