Fix parameter substitution.

clazz.size() was always zero since new list contains no elements
even if initial capacity is passed. So no substitution was run at all.