[gsharedvt] Avoid using the variable size code paths for non-variable size types with some array opcodes. Fixes #17023.