Replace tabs with 4 spaces.
Make sure trace source preferences are initialized in legacy layout.

Fixed #74.