Remember variable type in Add Entry

Store variable types together with their names in the variable completion list so that the type is automatically recovered when you select a variable.

This also works for variables that were previously stored without a type, e.g. with an older version of CMake (the type is set to default).