For autoload(), allow 'require' to be an array and allow 'from' to be a function that maps object names to paths.