Misc fixes.

- Make local some variables which are meant to be local.
- Fix some indentation issues.
- Optimize `protector.set_member_list' a bit.
- Remove reference to deprecated `tile_images' field.