Fix type detection.
Fix type detection.

Chai uses [type-detect](https://www.npmjs.com/package/type-detect)
library that returns "Object" and "Array" types always with starting
capitals.

zation/chai-like