minor fix to deepEquals

This avoids creating the keys iterables when Entities aren't the same size.