Make sure it's an array before trying to append
Merge pull request #58 from thewilkybarkid/class-array

Cater for modules that use strings where they should be using arrays