fix memory leak bug. add add_variable in object.
add typename deduction for object+base.
add member_function.