Fix variables in createBuffer for ndarrays
Merge pull request #1 from hughsk/fix-ndarray

Fix variables in createBuffer for ndarrays