add freely setoption for EC_idc and UT
Merge pull request #1380 from huili2/ec_option_free

add freely setoption for EC_idc and UT