Fix various bugs
Infer object literal