Allow same object to appear in one list when parsing V8 array

Fixes #874.