Support for boolean and empty string defaults, refs #366

Also refs #341.