Updated code generator to use new field access API. This makes the property and field access APIs the same.