Allow multiple definitions for an entity. Closes #275.