Move Array#to_json spec into core_ext