How to Learn and Represent Abstractions: An Investigation using Symbolic Alchemy