Fixed a bug where true values would fail looking for traits.

- If a trait was passed with a true value, but wasn't
a trait, it could fail if the defined factory didn't have any
traits defined. Fixed that.

- Added tests. Bumped version. Remade gulp files.