Fix errors relating to "g_item_names"

Fixed two compile-time errors wherein "g_item_names" was being treated
like a function rather than an array.