Make scope of the unpack method configurable.

When `unpack`ing, people might want to use a method which should be executed in a specific scope.

This pull request implements this behavior by introducing a new optional argument `scope` for the `unpack` method.