Set the isLocal flag for variable expressions