Fix regression involving booolean parameters.  Also added unit test for this and one other unit test for modify-image-attribute.  Fixes #61.