Added test that uses a constant generated Func (should map to constant memory in GPU targets).