Add template functions set_variable, get_variable and erase_variable. (Item class)