Make rules work correctly with :as specs in the pattern.