Fix fatally broken EntityId::newFromArray

Change-Id: I91f9b296d6d94902f3d38ce58526e9e072d7d922