Support selecting reference type vector value

There are many TODOs... :<

  * Error checkes are missing.
  * Blob types are only supported.
  * Reference types are only supported.
  * Make code clear!!!