fix issue 9677:  Crash on setting length property of array VC 2012 64 bit

The bad codegen is caused by _tls_array being assumed an "int", but it is a pointer array.
Other platforms other thn Win64 might be affected aswell.