Add a docstring for _assert_struct_type
Start working on checks for dependencies sections, also add a check for top level mapping