add unique constraint to auto ID. #69
cast insert values using generated schema. #68

Move the cast generation after the schema generation so that it has access
to the auto-generated keys such as ID. Then seed the cast types with the
newly created schema instead of just attributes.