#422 REST API: Metadata isnt't always string => array, in case of NameIDFormat it is string => string. JMS Serializer doesn't get this, so revert back to a plain array and make sure that if there is no metadata then just assign null.
Also fix ARP initialization to an empty array (instead of null)