Pattern matching against type of model node