allow capturing empty option values when using the assignment = operator
add tests
docs