Added support for reified type patterns, resolves #318