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.
Merge pull request #12 from sviperll/fix-substitute-parameters

Fix parameter substitution.