Add LEN() macro for getting array length
Add implementation of ws_value_type_from_value_name()