Scope to the type too.

fixes #115