KeyedEntity with def id refering to another field incorrectly assumes a composite key