Fix to Pull Request #86

Apply replica only to VariableNameExp and VariableDotExp without VariableArrayExp as the last segment.