fix(orderBy): make object-to-primtiive behaviour work for objects with null prototype