Improved bag lookup method, added debugs

Bag types now use an itemtype index to determine which itemtypes are
valid bag types instead of a loop through bag types.
Fixed a console warning for item array data

Weapon ammo information is now only passed to the item name renderer if
it has a valid calibre.

Cleaned up the code for name rendering a bit.