Ported reflection APIs and some method-related internals.