Replace dots in keys with an array value.