Fix const_get for custom hypervisors

This code must not have ever been used before, as const_get() has to be
run for each section of a namespace (and thus can't contain ::)

I don't have time to write tests right now, but this is required for custom hypervisors to work.