[TYPE] Add method field_index_get() to type::Record
[GEN] Add generation of structure