Also add declaring types of generic parameters to context when importing...

... so they can be resolved.

#124