Add support for InstrumentedAttributes in get_mapper
Add has_unique_index utility function