specific length validator for ActiveRecord to respect `mark_for_destruction`.

I implemented a separate validator to ensure that records, which are marked for destruction do not count when validating the length.

I also noticed that AR already had specific length tests, which I moved into a separate test-case.

This is a fix for #7247.