Add a test for setting reference element vector that needs cast

This is a test for
groonga/groonga@5afd15c4bec27ae3eae195aacb56c0e5988f52a0