Fix misc style issues from PR discussion; move @SuppressWarnings("unchecked") to method scope in tests; revert change to REPL scaladoc