User defined class parameter is always ignored

When doing the params merge the "class" parameter is always overridden because of the position in the array_merge()
Merge pull request #63 from gigo6000/patch-1

User defined class parameter is always ignored