Work around GCC bug in createVectorOf

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51253
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61382