check container, not scope
add type arguments to AppliedClass/Interface for #342 (indirectly)
use container, not scope