Always pass value types into setitem calls for arrays by reference, not doing this will result in errors in microsoft compilers for aligned data types.