If I define an array as equal to another array, then any function I use on the second array, also affects the first one. Example:
var real_array = [1, 2, 3]
var temparray = realarray
print(real_array) ---> print [2, 3]
Now I found the duplicate() function while writing this and it makes me think that this might not be a bug after all, but it does seem like odd behavior since other types of variables don't function like this (at least the ones I've tested).