Fixes #5304 handling metadata arrays in search for user profile data