Move internal-use struct to namespace detail
Add missing ABC_TRACE_FUNC() statements