optimization for array clearing

http://jsperf.com/array-destroy/87