Fix debug visualizer for the Value type

fixes #8073
Implement prototype functions

fixes #8065