apply replica only to VariableNameExp and VariableDotExp without VariableArrayExp as the last segment.
Merge pull request #88 from yushan87/builder_fix

Fix to Pull Request #86