canvas-animation: Add .contains() method to Object2D.