Fixed a bug in editing arrays.

Another bug cropped up with the array editing. The value get_attributes sent had too many commas because of some extra whitespace that sometimes crops up when turning an array into a string. The amount of space depends on the number of decimal places in the array, which is why it didn't always occur. I fixed this with some regex that matches an arbitrary number of spaces.