Reports declaration statements with val that can use the explicit type instead.