Rename isValidArray to isToArrayObject and move to League\Csv\Writer

Rename isValidArray to isToArrayObject
Move isToArrayObject to League\Csv\Writer
Amend test to comply with PSR-2