Add support for include_in_root/parent when mapping with attributes