fix ElementBuffer constructor when using pointers
Merge pull request #13 from holtrop/fix-elementbuffer-pointer-constructor

fix ElementBuffer constructor when using pointers