Text this: Probing out-of-distribution generalization in machine learning for materials