typed pattern match on dom.filter().map().max expressions