Support #with_polymorphic option for association matcher