Fix problem where referencing prototype as an array leads to exceptions.