This should be a simple one, but I could not crack it myself...
I want to copy the currently selected cells in the active sheet in an array called data:
It looks like the problem was on Google's side because after 24 hours of failure the existing code now works flawlessly. All your versions work fine too now.