Fix issue #37 Create buffer from array.
Merge pull request #38 from stepek/master

Fix issue #37 Create buffer from array.