Fixes #310 error with defaultsTo not being set correctly

scheme.defaultsTo was checking for a true/false value for the attribute,
instead check if the value is not undefined.

also fixes the issue of the defaultsTo value being set even when it is
defined in the values.
Merge pull request #358 from particlebanana/defaultsTo

Fixes #310 error with defaultsTo not being set correctly