[VPlan] Use vputils::getLoadStoreValueType in more places (NFC). (#247639)
Replace manual computations of the loaded/stored type from operands or
the underlying IR instruction with vputils::getLoadStoreValueType. Make
the helper take a const pointer, so it can be used from const methods.