fixed a problem with "0" as a key for the last entry of an array definition