Minecraft wiki entry for Block_and_item_duplication, associated text: 3. open your inventory and spam the crafting table recipe until you pick up the item you dropped. It should result in a stack(even for non-stackable items)