Common reflection tasks implemented as extension methods.