A generic extras flattener for simple structured data which is used now for PIDs