Fixed error with indexes in arrays created by type cast from object

When I have tried to use method `Assert::equal` with `Nette\ArrayHash` instances as arguments then I got following answer.
```
ErrorException: Undefined offset: 0
```
This pull request solves problem with object type casting to array.

Updated test included.