The role of object-centric representations, guided attention, and external memory on generalizing visual relations