Implemented deep type preservation (for object hierarchies).
Optimized type check in _preserveType and removed _defaultTypes.