Improve code formatting
cgen: Support attribute access

Also include space for slots when allocating instances.

Note: Slots are still not initialized!
cgen: Add test case