Lint-inspired cleanup

Cleaned up warnings from lint - mostly spacing issues and uses of array
notation where dot notation is preferable.