core: add kv-list helper macro

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>