Add rename validation for active patterns

Fix #77