Fixed inheritance and unique index creation (#140)