Absolutely! It is most definitely an Autistic trait. Memorizing arbitrary facts is very different, because it is arbitrary.
The fact that certain rules apply in many different contexts seems arbitrary to us, because each context seems unrelated to us, but to the NT mind, they aren't arbitrary at all. In fact Autistics tend to refer to the various contexts as "confusing rules" because we may not see the relationship between one context and another. NT's don't have so much of a problem seeing the relationships.
The basic difference between the arbitrary fact Autistics "collect" and the seemingly arbitrary contexts within which certain rules apply, is that the collected facts are not social rules. The seemingly arbitrary contexts, are social contexts, not rote facts. They're much harder to process.
_________________
I'm not likely to be around much longer. As before when I first signed up here years ago, I'm finding that after a long hiatus, and after only a few days back on here, I'm spending way too much time here again already. So I'm requesting my account be locked, banned or whatever. It's just time. Until then, well, I dunno...