Complete type inference for simple objects