mkdb: deref the array to not rely on new perl versions

The previous code works in 5.14.2, but apparently not in 5.12.4.
Fixes #724739