Implement ShadowContentResolver.getType().

Closes #954.