Add support for fully-qualified type names and extensions

@JakeWharton