<Component: roAssociativeArray> =
As RokuNB mentioned, your key is a integer. Your registry key/value pair must be strings. In your specific case above, you could use the following to convert the integer to a string.
You could also do some more validation/conversions in `RegWrite` since you are accepting `key as dynamic, value as dynamic`