Fix failing tests on 5.18: defined(@array) is deprecated

Last minute fix to 0.36