base: dim op for data.frames, fixed typing of length S3 method