Check registerFunctions input against instanceof Array instead of
typeof.