fix dynamic array creation
fix dynamic array creation

bssrdf/cudarray,andersbll/cudarray,malzantot/cudarray,bssrdf/cudarray,rufrozen/cudarray,malzantot/cudarray,rufrozen/cudarray,rufrozen/cudarray,andersbll/cudarray