Add insertfield and extractfield for struct-level field access