fix array slices and add default object base type