Interface for checking Bombilla types.
context - The context whose stacks should be cleared.
var - The variable to check.
types - The valid types for this variable.