Added support for nested objects in exposed modules.