Fixed Relation scopes for STI models.
Fixed role-based associations.
See rails/rails#3548 for details.