Changed copy to grab constructor from prototype instead of object directly.