Fix taking address of rvalue compiler issue with TensorFlow (plus other warnings).
When compiling TensorFlow, it doesn't like taking the address a template array in some compilers. Putting data in local variables to get around this.
I would like this in 3.4 if possible.