adding more test cases for handling nil keys and values in vectors and maps