Implement to_ary to avoid calls to method_missing

* I'm not gonna lie, I totally ripped this from @tenderlove
* See bundler/bundler#1274

Not only does this reduce calls to `method_missing`, but it makes debug output much quieter :sparkles: