Fix compatibility check for frozen lists, maps