Fixed bug in unique combination generation

1. Collections can return a key as a member key when its value is 0. This was causing us to produce invalid combinations in some cases.
2. Fixed the recursive call to check for this.