storing the locale information when using a direct lookup with the database options
* fixed a bug with the merging for the options (not taking into account a lookup record on the update)
* added createRecord method to generate a new record linked to a pipe
* supporting proper returns for non-inflated records through pipes
* fixed a bug in the inclusion of additional expansions through reverse lookups or pipes