Refactoring in ClassDefinitionImpl. Remove unnecessary linked list.

I would add a pre index check here:

```java
if (fieldIndex < 0 || fieldIndex >= fieldDefinitionsMap.size()) {
  throw new IndexOutOfBoundsException("Index: " + fieldIndex + ", Size: " + fieldDefinitionsMap.size());
}
```