attr_type now can include '.' for specifying depth