keyfncs and fixes for dynamic var table
Ensure IRB doesn't hang on to '@last_value' reference