Adding default method when object does not posses the `toArray` method
Merge branch 'toArray' of github.com:ehime/solarium into develop