DERBY-6075: Use modern collections in impl/sql/compile

Rename variables that have "vector" in their names and update
comments.