Fix style

- be consistent about spacing around ()
- be consistent using given/when
- add default cases to given/when
- the subs pragma is not block scoped, so it can be moved inside the
  BEGIN{} block
- be consistent about the used single quote function delimiter q//
- be consistent about returning scalars or not