PHP - Improved/fixed serialization and deserialize.

Current version had problem with sanitizing DataTime (only main model was sanitized). Sanitizer overriding field, which should be kept untouched. "deserialize" method had dead code: block begin with "if (preg_match("/array<(.*)>/", $type, $matches)) {".