Fix issue #37 Create buffer from array.