Fixed issue with more complex objects being extended.