wrap get_static_value and get_frame_value too