Fix _.extend returning an array instead of an object