fixed bug with arrays that was being caused by typeof [] returning object