Add WC_Order_Item_Meta::get_formatted()

This commit adds a helper method for plugins (and core) to use for
getting formatted item meta in an array, rather than a flattened string.

Part of #5423
Add item meta to REST API orders response

Fixes #5423
Merge pull request #5908 from maxrice/fix-issue-5423

Add item meta to REST API orders response