Registering required RPs from template metadata (1588437, 2002449)

Nitpick: might want to add `|| []` to these lines, just in case they come in from the file as null or undefined, so you always have an array.