Minor fixups to expandArray
Minor fixups to expandArray

Find the index keys by comparing the strings directly, so we don't need
to worry about the prefix value altering the regex.

hashicorp/terraform-plugin-sdk,hashicorp/terraform-plugin-sdk