Added support (and test) for typed extensions.