storage: support referencing primary key value of auto created records

Groonga creates a record automatically when a column is a reference type
column. With this change, we can reference primary key value of these
auto created records.