Do Language Models Learn about Legal Entity Types during Pretraining?