A Relational Inductive Bias for Dimensional Abstraction in Neural Networks