Made type handling more consistent.
Added strict type checking mode (defaults on), where data coming from JSON is expected to be the right type. Can override for entire decoding process, or on a property by property basis.
Outbound type checking is lax (this is PHP afterall!)
Updated bootstrap config.
Merge pull request #47 from JonathanO/master

Strict type checking and general type handling improvements.