Modified numeric key handling for array values.