Inconsistent behavior for array#slice in ruby | Hacker News Reader