Fixed deepEqual to detect properties on array objects

Tests and fiix for #315