fix #164 Attributes of type string contain string "null" when the bound ...

...value is undefined

A quick fix, but raising a bigger question about undefined values, see commented test in the PR.
If `v == 0`, we should also convert the value to a string.