add forgotten check for cast of nested array at tests #4