Refactor: changed Variable's get/setVariableType to get/setRootNode