Fixed instantiateStructuredArray signature to match vanilla.