Fix function loading not actually happening.

map() apparently does not return a list but an iterateable that doesn't
enumerate the functions properly repeatedly. Fixed by turning its result into
a list.