(MAINT) 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 ::)
Merge pull request #544 from hunner/fix_custom_hypervisors

Fix const_get for custom hypervisors