fix object properties being converted to named functions