Resolves #3015, allow array syntax when specifying foreign key for a MANY_MANY relation

This does not however allow using 'together' on MANY_MANY.

Todo:
- [ ] Fix docs, like guide and CActiveRecord.relations() method description
- [ ] Add unit tests