Fix failing test CreateUniqueIndexes

#58 Fixed
Simplify some reflection code