support inferrance for deep nested constants