Internal function "readonly" doesn't accept -i

Switching to "declare -r -i".