Optimize the index prior to testing the mapping.

Related to pull request https://github.com/ruflin/Elastica/pull/359
Can now create a query with an array
Add tests and update changes.txt
Merge pull request #417 from odolbeau/fix-search-array

Can now create a query with an array
Added Common query
Merge pull request #420 from jlinn/common-query

Added Common query
Merge pull request #419 from jappievw/mapping-change-test-fixes

Optimize the index prior to testing the mapping.
Add $index->refresh() to test to make sure, index always is ready