Fix: broken when prototype applied to array

Source : https://code.google.com/p/sheepit/issues/detail?id=7