MAINT: Using dictionary literal syntax and combining lines

for readability
MAINT: Set initial values so to_dict can be called immediately

Previously, it would raise an exception.