Parsing error when "curie" is an array

In the spec, there is an example where "curie" is set to an array of objects. However, it doesn't seem the HAL browser can handle an array of curies.

This commit simply tests whether "curie" is an array, and if it is iterates through the array until it finds a "name" property which matches the prefix. I'm not familiar enough with the code to tell if this is the most elegant way, but it works.