Fixed EF generic repository registration for int primary keys.