UniqueEntity constraint: add support for Single Table Inheritance

Exactly what it says on the tin. To be fair this could use some more extensive testing, but so far I've had no issues.