Make lengthOf detect length property the same way as Chai

Fixes #173.