pe::Entity: Make member functions const-correct.