fix(src/type.ml): remove unnecessary field access function

remove functions(varmap, modemap, init_id, etc), they are not necessary.