fix issue #21
rebase
Merge pull request #22 from mcuadros/BSONAsArray

Fixed #21