Added support for nested models when using key paths with periods.