Adding dump method for dumping objects.
Replacing array access with objectAtIndex for Sketch 3 compatibility.