Fix incorrect array construction.
Fix incorrect array construction.

HolyGeneralK/arrayfire,victorv/arrayfire,jramapuram/arrayfire,Keno/arrayfire,asifmadnan/arrayfire,victorv/arrayfire,9prady9/arrayfire,unbornchikken/arrayfire,bkloppenborg/arrayfire,hshindo/arrayfire,umar456/arrayfire,hshindo/arrayfire,munnybearz/arrayfire,linan7788626/arrayfire,unbornchikken/arrayfire,merlin-ext/arrayfire,mrgloom/arrayfire,merlin-ext/arrayfire,victorv/arrayfire,merlin-ext/arrayfire,HolyGeneralK/arrayfire,ghisvail/arrayfire,arrayfire/arrayfire,arrayfire/arrayfire,9prady9/arrayfire,arrayfire/arrayfire,hshindo/arrayfire,shehzan10/arrayfire,asifmadnan/arrayfire,HolyGeneralK/arrayfire,marbre/arrayfire,marbre/arrayfire,marbre/arrayfire,umar456/arrayfire,ghisvail/arrayfire,bkloppenborg/arrayfire,pentschev/arrayfire,pombredanne/arrayfire,linan7788626/arrayfire,mrgloom/arrayfire,Keno/arrayfire,HolyGeneralK/arrayfire,shehzan10/arrayfire,bkloppenborg/arrayfire,pombredanne/arrayfire,Keno/arrayfire,linan7788626/arrayfire,munnybearz/arrayfire,marbre/arrayfire,pentschev/arrayfire,arrayfire/arrayfire,merlin-ext/arrayfire,pombredanne/arrayfire,jramapuram/arrayfire,Keno/arrayfire,shehzan10/arrayfire,shehzan10/arrayfire,ghisvail/arrayfire,pombredanne/arrayfire,9prady9/arrayfire,umar456/arrayfire,unbornchikken/arrayfire,ghisvail/arrayfire,bkloppenborg/arrayfire,victorv/arrayfire,unbornchikken/arrayfire,munnybearz/arrayfire,asifmadnan/arrayfire,hshindo/arrayfire,linan7788626/arrayfire,jramapuram/arrayfire,asifmadnan/arrayfire,mrgloom/arrayfire,mrgloom/arrayfire,jramapuram/arrayfire,pentschev/arrayfire,umar456/arrayfire,9prady9/arrayfire,pentschev/arrayfire