Unified reflection api and function registry