Attention over Learned Object Embeddings Enables Complex Visual Reasoning