core: introduce mp_format_on_region()
This patch introduces mp_format_on_region() and mp_vformat_on_region() functions. These functions help to create an encoded value according to a given format in a buffer allocated on region.
NO_DOC=Refactoring NO_TEST=Refactoring NO_CHANGELOG=Refactoring