Using the new copy() method in EntityRef, also fixed the support based on sides (with test)