fix error message for invalid options given to a dependency
give locked_version of resolved recursive dependencies to lockfile