Automatically instantiate collection if passed as function reference.