Modules 707

Related to https://tickets.puppetlabs.com/browse/MODULES-707

Re-use existing str2bool code rather than doing a copy and paste.

Be slightly more relaxed about accepting objects which extend string/array rather than only allowing String/Array