Improve sequence identification in regdelta and hive tables

Also enforces uniqueness of sequence definitions.