update transform_regions() - replace flags with kind, allow string only

- update Domain.create_regions()