Instances are named arrays.

Modified most test cases to use array_values to get numbered arrays or use the instance names. This fixes Issue #60