Fixes bug with index hash key

Fixes bug, that allowed to pass index hash
key that differs with primary hash key on
table creation.

Closes-bug: #1356584
Closes-bug: #1308971
Change-Id: I7b3cc2da926eb1b446de2ff212141beb38faccaf