Fix typos and some minor syntax things found by RubyMine inspections