Learning and generalization of repetition-based rules in autism