Work with Generics improved

To SwaggerModel added function injectGeneric which inserts reference on model.
For instance, we have ContainerClass[InnerClass].
ContainerClass {
  value (java.util.Collection<T>, optional)
}
It will become
ContainerClass {
  value (Array[InnerClass], optional)
}

Minor improvements:

 - collection added to array types
 - getMockSignature() splitted on smaller methods