Faster name_to_value implementation.
add hooks for impl/inter code