Turned it into a gem
Improved support for arrays