Add support for empty and nil values

Fixes #16. I don't know whether or not this is reasonable in general. I needed it and am deploying it now.