Refactor to allow booleans in parameters.

This patch solves a lint issue where stringified booleans ('true'
instead of true) were used as default settings for parameter values.
Besides solving the lint issue, you can now safely pass booleans. This
also unearthed some issue with the spec tests and improves their
coverage.