RUBY-576 documentation fix for ensure index

- Syntax correction for Collection#ensure_index examples.
- Added Ruby 1.8 and Ruby 1.9 examples for Collection#create_index.
- Added index type validation for hash syntax