alakazam: add support for ruby19 and make faster