CRM-15495 - Support complex api filters in EntityRef