[dm-types] Updated DM::Json.typecast to handle nil values
[dm-types] Updated DM::Json.typecast to handle nil values

* Minor code cleanup

[#609 state:resolved]

engineyard/dm-types,troygnichols/dm-types,ar-dm/ardm-types,lgierth/dm-types,datamapper/dm-types