Finalize values, fix warnings, fix bug with converting item to itemstack