Registering required RPs from template metadata (1588437, 2002449)

This String constructor thing has to stop. :-) You're taking an array, converting it to a string separated by commas, then splitting it back into an array on commas? Why?