Add rename validation for active patterns

Fix #77
Merge pull request #111 from dungpa/rename-validation

Add rename validation for active patterns