Selecting a bag in the game window and then opening the DFHack console and entering
createitem item
gives the error message "The selected item cannot be used for item storage!"
myk on the Bay 12 forums said:
Bags got their own item type in DF v50. It wouldn't surprise me if createitem needs a small update to recognize them again.