- added Array class support
- fixed to_bson incorrectly handle array index