Interestingly, this doesn't work if you pass the inputs as an object instead of an array (e.g. {r:...,g:...,b:...}). In that case, to fix it, inside the template instead of ${inputs}, you can use ${Object.values(inputs)}.
P.S.
Anyone else wish you could use markdown in the comments?