Fixes #3512 - help for associating commands is too generic
Fixes #5873 - list actions don't resolve ids for optional parameters
Refs #5873 - scoped options were not cleaning original options

The former implementation was not scoping correctly:
input
{
  :option_name => 'NAME',
  :option_id => 1,
  :option_product_id => 2
}
output scoped for a product
{
  :option_name => 'NAME',
  :option_id => 2
}
Note the name remainig incorrectly in the options.

This patch solves the problem by clearing all potential searchable options.
Merge pull request #124 from mbacovsky/3512_associated_descrs

Fixes #3512 - help for associating commands is too generic
Fixes #5747 - Fine grained control over name expansion
Refs #5747 - Documentation for fine grained control over name expansion
Merge pull request #125 from tstrachota/opts2

Fixes #5747 - Fine grained control over name expansion