Fix profile visibility saving when multiple profile groups are used.

Hotfix for BuddyPress ticket 5666:
https://buddypress.trac.wordpress.org/ticket/5666

We're working around this issue by using our own custom functions to grab
and output all profile field IDs used on a user's "Settings > Profile"
page.

See #203.