fixes makeArray with function type; fixes #1