Implement less aggressive casting in ORM.

This set of changes makes the type casting that occurs during marshaling to be far less aggressive. My aim is to solve the problems described in #4790, #4922 and others. By only casting data that is approximately the right type entities will have the opportunity to have invalid data which can then fail validation.

The most dramatic changes are in the date/time/datetime types as they now only cast string data that exactly matches the formats they use. Conversion from array forms is unaffected.
What if no seconds where provided? That would fail the check although it is arguably a "good one"

For example `2014-01-01 10:10` is the same as `2014-01-01 10:10:00`, but not for this check