Bash: use local instead of declare to create associative array inside fn.