add regression test for r_dict
add struct's inheritance