Use arrays rather than plain objects for storing fn and its args.