Add ws_value_get_name()

This is a feature I would like to see merged for my work on #357.
It adds a function to get the name from a ws_value object.

Blocks #357