improve check for Float64Array; fixes #1651